var a = getApp().globalData.api;

Page({
    data: {
        payData: null
    },
    onLoad: function(t) {
        var e = this;
        //   t.hasOwnProperty("orderId") ?
       let para={
           'ordersn':t.orderId,
           'openid':wx.getStorageSync("openid"),
       };
       a.post1("wechat/home/getOrderDetail",para).then(function(a) {   
            e.setData({
                payData: a.data
            }), wx.setNavigationBarTitle({
                title: "付款成功"
                // title: "9A20" == a.values.kind ? "提交成功" : "付款成功"
            });
            
        }, function(a) {
            wx.switchTab({
                url: "/pages/homepages/homepages"
            });
        }) 
        // : wx.switchTab({
        //     url: "/pages/homepages/homepages"
        // });
    },
    onShow: function() {},
    onHide: function() {}
});